@@include('../base.html')
<!-- 设置全局token -->
<script>
    $(function(){
        $.ajaxSetup({
            beforeSend:function(xhr){
                const token=localStorage.getItem('token')
                xhr.setRequestHeader('Authorization',token)
            }
        })
        $.ajax(`${baseUrl}/login/status`,{
            success:function(res){
                console.log('获取成功',res);
                // if(res.msg=='未登录'){
                //     location.href='/admin/login'
                // }
            },error:function(){
                console.log('获取失败');
            }
        })
    })
</script>